package com.sumapay.fsb.gensrc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author suma
 * @since 2021-02-20
 */
@TableName("fsb_trade_record")
public class TradeRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 交易流水号,丰收宝订单号
     */
    private String tradeId;

    /**
     * 银联交易序列号
     */
    private String txnNo;

    /**
     * 交易金额
     */
    private String sum;

    /**
     * 银行卡类型  01为借记卡 02为贷记卡（包括准贷记卡）
     */
    private String bankAccountType;

    /**
     * 银行卡号
     */
    private String bankAccount;

    /**
     * 银行户名
     */
    private String bankAccountName;

    /**
     * 手机号
     */
    private String phoneNo;

    /**
     * 证件号
     */
    private String idNumber;

    /**
     * 用户设备标识
     */
    private String userDeviceId;

    /**
     * 用户设备类型 1：手机 2：平板、3：手表、4：PC
     */
    private String userDeviceType;

    private String userSourceIp;

    private String userAccountIdHash;

    private String userRegisterDate;

    /**
     * 传递个性化数据，透传
     */
    private String reserved;

    private String tradeFee;

    /**
     * 0：成功；、1：失败 、2：待确认
     */
    private String status;

    /**
     * 付款凭证号
     */
    private String voucherNum;

    /**
     * 0:IOS  1:Andriod
     */
    private String tradeSource;

    private String respCode;

    /**
     * 应答码
     */
    private String respMsg;

    /**
     * 交易开始时间
     */
    private LocalDateTime tradeStartTime;

    /**
     * 交易结束时间
     */
    private LocalDateTime tradeEndTime;

    /**
     * 应答信息
     */
    private String fld1;

    private String fld2;

    private String fld3;

    private String fld4;

    private String fld5;

    private LocalDateTime rowCreateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getTradeId() {
        return tradeId;
    }

    public void setTradeId(String tradeId) {
        this.tradeId = tradeId;
    }
    public String getTxnNo() {
        return txnNo;
    }

    public void setTxnNo(String txnNo) {
        this.txnNo = txnNo;
    }
    public String getSum() {
        return sum;
    }

    public void setSum(String sum) {
        this.sum = sum;
    }
    public String getBankAccountType() {
        return bankAccountType;
    }

    public void setBankAccountType(String bankAccountType) {
        this.bankAccountType = bankAccountType;
    }
    public String getBankAccount() {
        return bankAccount;
    }

    public void setBankAccount(String bankAccount) {
        this.bankAccount = bankAccount;
    }
    public String getBankAccountName() {
        return bankAccountName;
    }

    public void setBankAccountName(String bankAccountName) {
        this.bankAccountName = bankAccountName;
    }
    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }
    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }
    public String getUserDeviceId() {
        return userDeviceId;
    }

    public void setUserDeviceId(String userDeviceId) {
        this.userDeviceId = userDeviceId;
    }
    public String getUserDeviceType() {
        return userDeviceType;
    }

    public void setUserDeviceType(String userDeviceType) {
        this.userDeviceType = userDeviceType;
    }
    public String getUserSourceIp() {
        return userSourceIp;
    }

    public void setUserSourceIp(String userSourceIp) {
        this.userSourceIp = userSourceIp;
    }
    public String getUserAccountIdHash() {
        return userAccountIdHash;
    }

    public void setUserAccountIdHash(String userAccountIdHash) {
        this.userAccountIdHash = userAccountIdHash;
    }
    public String getUserRegisterDate() {
        return userRegisterDate;
    }

    public void setUserRegisterDate(String userRegisterDate) {
        this.userRegisterDate = userRegisterDate;
    }
    public String getReserved() {
        return reserved;
    }

    public void setReserved(String reserved) {
        this.reserved = reserved;
    }
    public String getTradeFee() {
        return tradeFee;
    }

    public void setTradeFee(String tradeFee) {
        this.tradeFee = tradeFee;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public String getVoucherNum() {
        return voucherNum;
    }

    public void setVoucherNum(String voucherNum) {
        this.voucherNum = voucherNum;
    }
    public String getTradeSource() {
        return tradeSource;
    }

    public void setTradeSource(String tradeSource) {
        this.tradeSource = tradeSource;
    }
    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }
    public String getRespMsg() {
        return respMsg;
    }

    public void setRespMsg(String respMsg) {
        this.respMsg = respMsg;
    }
    public LocalDateTime getTradeStartTime() {
        return tradeStartTime;
    }

    public void setTradeStartTime(LocalDateTime tradeStartTime) {
        this.tradeStartTime = tradeStartTime;
    }
    public LocalDateTime getTradeEndTime() {
        return tradeEndTime;
    }

    public void setTradeEndTime(LocalDateTime tradeEndTime) {
        this.tradeEndTime = tradeEndTime;
    }
    public String getFld1() {
        return fld1;
    }

    public void setFld1(String fld1) {
        this.fld1 = fld1;
    }
    public String getFld2() {
        return fld2;
    }

    public void setFld2(String fld2) {
        this.fld2 = fld2;
    }
    public String getFld3() {
        return fld3;
    }

    public void setFld3(String fld3) {
        this.fld3 = fld3;
    }
    public String getFld4() {
        return fld4;
    }

    public void setFld4(String fld4) {
        this.fld4 = fld4;
    }
    public String getFld5() {
        return fld5;
    }

    public void setFld5(String fld5) {
        this.fld5 = fld5;
    }
    public LocalDateTime getRowCreateTime() {
        return rowCreateTime;
    }

    public void setRowCreateTime(LocalDateTime rowCreateTime) {
        this.rowCreateTime = rowCreateTime;
    }

    @Override
    public String toString() {
        return "FsbTradeRecord{" +
                "id=" + id +
                ", tradeId=" + tradeId +
                ", txnNo=" + txnNo +
                ", sum=" + sum +
                ", bankAccountType=" + bankAccountType +
                ", bankAccount=" + bankAccount +
                ", bankAccountName=" + bankAccountName +
                ", phoneNo=" + phoneNo +
                ", idNumber=" + idNumber +
                ", userDeviceId=" + userDeviceId +
                ", userDeviceType=" + userDeviceType +
                ", userSourceIp=" + userSourceIp +
                ", userAccountIdHash=" + userAccountIdHash +
                ", userRegisterDate=" + userRegisterDate +
                ", reserved=" + reserved +
                ", tradeFee=" + tradeFee +
                ", status=" + status +
                ", voucherNum=" + voucherNum +
                ", tradeSource=" + tradeSource +
                ", respCode=" + respCode +
                ", respMsg=" + respMsg +
                ", tradeStartTime=" + tradeStartTime +
                ", tradeEndTime=" + tradeEndTime +
                ", fld1=" + fld1 +
                ", fld2=" + fld2 +
                ", fld3=" + fld3 +
                ", fld4=" + fld4 +
                ", fld5=" + fld5 +
                ", rowCreateTime=" + rowCreateTime +
                "}";
    }
}
